package szwolaiyun.paireach.com.szwolaizhuang.fragment;

import android.os.Bundle;
import android.os.Handler;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import szwolaiyun.paireach.com.szwolaizhuang.R;
import szwolaiyun.paireach.com.szwolaizhuang.mode.MessageInfo;

/**
 * Created by Administrator on 2016/7/21.
 */
public class MessageInfoFragment extends Fragment {
    private View view;
    private TextView title;
    private TextView info;
    private Handler handler;
    private MessageInfo messageInfo;
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        view=inflater.inflate(R.layout.fragment_message_info,null);
        initControl();
        return view;
    }

    void initControl(){
        title=(TextView)view.findViewById(R.id.title);
        info=(TextView)view.findViewById(R.id.info);

        title.setText(messageInfo.getTitle());
        info.setText(messageInfo.getInfo());
    }

    public void setHandle(Handler handler){
            this.handler=handler;
    }
    public void setMessageInfo(MessageInfo messageInfo){
        this.messageInfo=messageInfo;
    }

}
